﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Web
{
    public class AppModule
    {
        public AppView GetView(System.Web.UI.Page page, Core.ModuleView view)
        {
            System.Web.UI.Control control = page.LoadControl(view.Code);
            return control as AppView;
        }

        public SubView GetView(System.Web.UI.Page page, string virtualPath)
        {
            System.Web.UI.Control control = page.LoadControl(virtualPath);
            return control as SubView;
        }
    }
}
